#ifndef __PRIVATEBUSMASTER_H__
#define __PRIVATEBUSMASTER_H__
/*
 * 私有协议主机部分，提供主机的初始化函数和消息处理函数
 *
 * */
#ifdef __cplusplus
extern "C"{
#endif

#include "PrivateBus.h"
#include "PrivateBusMaster_port.h"
extern uint8_t PrivateBus_Slave_Num;
extern const uint8_t PrivateBus_Slave_Num_Max;

//系统接口API
PB_ERR PrivateBus_Master_Init(void);
void PrivateBus_Master_DealWith(uint8_t* _data,uint16_t _len);

//外部调用接口API
bool PrivateBus_Master_Send_Sync(uint8_t* _data,uint16_t _len,uint8_t* _callback_data,uint16_t* _callback_len,uint16_t _timeout);
void PrivateBus_Master_Send_Async(uint8_t* _data,uint16_t _len,uint8_t* _callback_data,uint16_t* _callback_len);
#ifdef __cplusplus
};
#endif
#endif


